package org.benjamin.lending.configuration;

import org.benjamin.lending.security.CustomSuccessHandler;
import org.benjamin.lending.security.CustomUserDetailsService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class WebSecurityBeanConfiguration {
	
	@Bean
	public CustomUserDetailsService customUserDetailsService() {
		CustomUserDetailsService customUserDetailsService = new CustomUserDetailsService();
		return customUserDetailsService;
	}
	
	@Bean
	public CustomSuccessHandler successHandler() {
		CustomSuccessHandler customSuccessHandler = new CustomSuccessHandler();
		return customSuccessHandler;
	}
}
